package ar.com.angrymachine.hunter.locations;

import ar.com.angrymachine.hunter.ActivitySet;
import ar.com.angrymachine.hunter.Game;
import ar.com.angrymachine.hunter.Locale;
import ar.com.angrymachine.hunter.activities.QuestActivity;
import ar.com.angrymachine.hunter.activities.TrainerActivity;
import ar.com.angrymachine.hunter.gameplay.ArenaQuest;
import ar.com.angrymachine.hunter.gameplay.Quest;

public class TownActivitySet extends ActivitySet
{

	public TownActivitySet()
	{
		super(Locale.TOWN);
	}
	
	public void onEnter()
	{
		// heal player
		Game.current.player.healCompletely();
		// reset the activities
		activities.clear();
		generateTown();
	}
	
	private void generateTown()
	{
		// create permatrainers
		addActivityInTail(new TrainerActivity(TrainerActivity.TYPE_FIGHTING));
		addActivityInTail(new TrainerActivity(TrainerActivity.TYPE_DISARM));
		addActivityInTail(new TrainerActivity(TrainerActivity.TYPE_EXPLORATION));
		addActivityInTail(new TrainerActivity(TrainerActivity.TYPE_MAGIC));
		// create town activities
		addActivityInTail(new QuestActivity(new ArenaQuest()));
		// create quests
		//addActivityInTail(new QuestActivity(new ColossusQuest()));
		addActivityInTail(new QuestActivity(new Quest(Locale.QUEST_BRIEF_KILL_LORD, Locale.QUEST_DESC_KILL_LORD)));
	}
}
